home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 4009 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: mat.uni.torun.pl!not-for-mail
  2. From: microbe@phys.uni.torun.pl (Andrzej Chojnowski)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: System-friendly programming. How?
  5. Date: 15 Feb 1996 17:46:22 GMT
  6. Organization: Uniwersytet Mikolaja Kopernika
  7. Message-ID: <4fvrhe$9ll@Waldemar.mat.uni.torun.pl>
  8. NNTP-Posting-Host: class1.phys.uni.torun.pl
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=ISO-8859-2
  11. Content-Transfer-Encoding: 8bit
  12. X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
  13.  
  14. Yesterday I sit down & tried to write simple intro. I decided to put module
  15. player routine call in VBLANK interrupt. I want to make it system-friendly.
  16. Okie. I did it. But after intro execution system got crazy. I sit down once
  17. again & found out what was the cause of such nasty effects: the player routine
  18. It uses the CIA-A timer B which is used probably by the system too. So I got
  19. some questions:
  20.  
  21. 1) Is there any way to allocate/deallocate each CIA timer?
  22. 2) Is there any player routine which don't need CIA timers to run?
  23.    (I have 3 different routines: pt-play.s, pt-ciaplay.s, ptplay30b.s)
  24.  
  25. Another problem appeared when I opened a 32-colour screen. I don't know how
  26. to get rid of arrow pointer WITHOUT manipulation on DMACon (I said I wanna
  27. be system-friendly :) It should be possible. I thought that setting the
  28. screen's viewport flags to not allow displaying sprites will help. It won't.
  29. Any ideas ?? (That silly thing really makes me upset ;)
  30.  
  31. Last question may sound stupid : How the Amiga multitasks?
  32. Is that a kind of timer interrupt which switches the tasks?
  33. Does calling Disable prevent the task change like Forbid does?
  34.  
  35.                                                    Andrew.
  36.